package top.ywlog.spi.consumer;

import top.ywlog.spi.Search;

import java.util.Iterator;
import java.util.ServiceLoader;

/**
 * @author: Durian
 * @date: 2021/9/18 23:04
 */
public class Client {

    public static void main(String[] args) {
        ServiceLoader<Search> searches = ServiceLoader.load(Search.class);
        Iterator<Search> iterator = searches.iterator();
        while (iterator.hasNext()) {
            iterator.next();
        }
    }
}
